//
//  EmotionalViewCell.m
//  momo
//
//  Created by HappyMilk 02 on 2017/5/2.
//  Copyright © 2017年 tomi. All rights reserved.
//

#import "EmotionalViewCell.h"

@interface EmotionalViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *lab_time;
@property (weak, nonatomic) IBOutlet UITextView *lab_contents;
@property (weak, nonatomic) IBOutlet UILabel *lab_number;

@property (weak, nonatomic) IBOutlet UIView *view_evelments;

@end

@implementation EmotionalViewCell

- (void)setModel:(MessageModel *)model{
    _model = model;
    
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"MM - dd"];
    NSString *currentDateStr = [dateFormatter stringFromDate:model.createdAt];
    _lab_time.text = currentDateStr;
    
    _lab_contents.text = model.message;
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
